package com.edu.publisher.util;

/**
 * Created on 2022/10/21.
 *
 * @author Topus
 * @desc 防止
 */
public class StringFormatUtil {

    /**
     * 处理预编译语句：将\->/，将"->'
     * 
     * @param str
     * @return
     */
    public static String replaceEscape(String str) {
        return str.replaceAll("\\\\", "/").replaceAll("\"", "\'");
    }
}
